﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace TrenchcoatRobots.Datatypes.States {
	/// <summary>
	/// Static class for updating input. This is accesible from the entire game.
	/// </summary>
	public class InputStates {
		public static KeyboardState KeyboardState { get; protected set; }
		public static MouseState MouseState { get; protected set; }
		public static GamePadState FirstPlayerGamepadState { get; protected set; }
		public static GamePadState SecondPlayerGamepadState { get; protected set; }

		public static void UpdateInput( ){
			KeyboardState = Keyboard.GetState();
			MouseState = Mouse.GetState();
			FirstPlayerGamepadState = GamePad.GetState( PlayerIndex.One );
			SecondPlayerGamepadState = GamePad.GetState( PlayerIndex.Two );
		}
	}
}
